package org.example;
import org.example.bean.Student;
import org.example.bean.Product;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        Student student = context.getBean("student", Student.class);
        Product product = context.getBean("product", Product.class);

        System.out.println(product);
        System.out.println(student);
    }
}
